﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MyExams.aspx.cs" Inherits="OA.Exam.Front.MyExams" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>我的考卷</title>
    <link href="../../Themes/Default/Style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="98%">
            <tr>
                <td colspan="2" class="TitleZone">
                   我的考卷
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <asp:Label ID="LabPrompt" runat="server" Text="" ForeColor="Red"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="width: 70%">
                </td>
                <td style="width: 30%">
                    &nbsp;&nbsp;
                    
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;&nbsp;试卷名称：
                    <asp:TextBox ID="TxtPaperName" runat="server" CssClass="inputText"></asp:TextBox>
                    &nbsp;&nbsp;<asp:Button ID="BtnSearcn" runat="server" Text="查询" CssClass="closebtn"
                        OnClick="BtnSearcn_Click" />
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:GridView ID="GridViewMyExams" runat="server" AutoGenerateColumns="false"
                        CssClass="GridViewStyle" Width="100%" AllowPaging="true" 
                        EmptyDataText="暂无考卷">
                        <Columns>
                            <asp:TemplateField HeaderText="行号">
                                <ItemTemplate>
                                    <asp:Label ID="LabPaperName" runat="server" Text='<%#Container.DataItemIndex+1 %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle Width="6%" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="试卷名称">
                                <ItemTemplate>
                                    <asp:Label ID="LabPaperName" runat="server" Text='<%#Eval("papername") %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle Width="60%" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="得分">
                                <ItemTemplate>
                                    <asp:HyperLink ID="HylScore" runat="server" NavigateUrl='<%#String.Format("MyExamPaper.aspx?examId={0}",Eval("examid"))%>' Target="_blank" Text='<%#Eval("score") %>'></asp:HyperLink>
                                </ItemTemplate>
                                <ItemStyle Width="12%" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="BeginTime" HeaderText="开始时间" ItemStyle-Width="12%" />
                            <asp:BoundField DataField="EndTime" HeaderText="结束时间" ItemStyle-Width="12%" />
                        </Columns>
                        <FooterStyle CssClass="GridViewFooterStyle" />
                        <RowStyle CssClass="GridViewRowStyle" />
                        <SelectedRowStyle CssClass="GridViewSelectedRowStyle" />
                        <PagerStyle CssClass="GridViewPagerStyle" />
                        <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                        <HeaderStyle CssClass="GridViewHeaderStyle" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
